package com.czy.workflow.core.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 流程分支
 */
@Entity
@Table(name = "flow_branch", schema = "work")
@Data
public class FlowBranch extends FlowMeta{

    @Column(name = "flow_id")
    String flowId;

    @Column(name = "source_node_id")
    String sourceNodeId;

    @Column(name = "target_node_id")
    String targetNodeId;

    /**
     * 基于选项的条件判断
     */
    String option;

    /**
     * 基于表达式的条件判断
     */
    String expression;

}
